# frozen_string_literal: true
class CreateBuildings < ActiveRecord::Migration[5.0]
  def change
    create_table :buildings do |t|
      t.references :village, foreign_key: true
      t.references :editor, foreign_key: true

      t.string :code

      t.timestamps
    end
  end
end
